package com.k9sv.web.controller;

import java.util.HashMap;
import java.util.Map;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import org.springframework.web.servlet.ModelAndView;
import org.springframework.web.servlet.mvc.multiaction.MultiActionController;

import com.k9sv.util.IpUtil;
import com.k9sv.util.Tools;


public class IndexController extends MultiActionController {

	
	private Tools tools;
	//private LogoutHandler logoutHandler = new SecurityContextLogoutHandler();

	public ModelAndView index(HttpServletRequest request,HttpServletResponse response) throws Exception {

		Map<String, Object> _root = new HashMap<String, Object>();
		
		String ip = IpUtil.getIp(request);
		
		tools.city();
		
		return new ModelAndView("index", _root);
	}

	public Tools getTools() {
		return tools;
	}

	public void setTools(Tools tools) {
		this.tools = tools;
	}


}
